import request from "../utils/request"

/**
 * -------------------------------------------------------------------------------------------
 * 用户相关操作
 * -------------------------------------------------------------------------------------------
 */

// 登录
export function loginIn(data) {
  return request({
    url: "/user/login",
    method: "post",
    data
  })
}

// 注册
export function createUser(data) {
  return request({
    url: "/user/create",
    method: "post",
    data
  })
}
